@extends('Layouts.iframe')
@section('content')
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 管理员管理 <span class="c-gray en">&gt;</span> 管理员列表
        {{--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>--}}
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="{{ url('admin/logs') }}" title="重置" ><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="page-container">
        <div class="cl pd-5 bg-1 bk-gray mt-20">
            <span class="r">共有数据：<strong>{{ $page->total() }}</strong> 条</span> </div>
        <table class="table table-border table-bordered table-bg">
            <thead>
            <tr>
                <th scope="col" colspan="9">员工列表</th>
            </tr>
            <tr class="text-c">
                <th width="40">编号</th>
                <th width="150">操作账号</th>
                <th width="90">请求方式</th>
                <th width="150">ip地址</th>
                <th>操作数据</th>
                <th width="130">操作时间</th>
            </tr>
            </thead>
            <tbody>
            @if($page)
                @foreach($page as $item)
                    <tr class="text-c">
                        <td>{{ $item->id }}</td>
                        <td>{{ $item->user['username'] }}</td>
                        <td>{{ $item->method }}</td>
                        <td>{{ $item->ip }}</td>
                        <td>{{ $item->description }}</td>
                        <td>{{ $item->created_at }}</td>
                    </tr>
                @endforeach
            @endif
            </tbody>
        </table>
        <div id="pull_right">
            <div class="pull-right">
                {!! $page->render() !!}
            </div>
        </div>
    </div>
@endsection
